//
//  Cat.m
//  runtimeTest
//
//  Created by Song on 2018/4/18.
//  Copyright © 2018年 Song. All rights reserved.
//

#import "Cat.h"

@implementation Cat

+(instancetype)catWithDict:(NSDictionary *)dict {
    return [[self alloc] initWithDict:dict];
}

-(instancetype)initWithDict:(NSDictionary *)dict {
    if (self == [super init]) {
        [self setValuesForKeysWithDictionary:dict];
//        self.name = dict[@"name"];
//        self.price = [dict[@"price"] doubleValue];
//        self.fish = dict[@"fish"];
    }
    return self;
}

@end
